package com.xx.service.impl;

import com.xx.dao.StudentDao;
import com.xx.dao.impl.StudentDaoImpl;
import com.xx.service.StudentService;

public class StudentServiceImpl implements StudentService {
    StudentDao studentDao;

    private String name;

    private int age;

    public StudentServiceImpl(StudentDaoImpl studentDao) {
    }

    @Override
    public void getStudentList() {
        studentDao.getStudentList();
        System.out.println(name+"-----"+age);
    }
    public void setStudentDao(StudentDaoImpl studentDao) {
        this.studentDao = studentDao;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
